Código
// Ejemplo de validación de compatibilidad en VoidemAbiss
const component = {
name: 'Intel Core i5-12400F',
socket: 'LGA1700',
power: 65
};
const motherboard = {
name: 'ASUS TUF Gaming B660',
socket: 'LGA1700',
maxPower: 125
};
function isCompatible(cpu, board) {
return cpu.socket === board.socket && cpu.power <= board.maxPower;
}
if (isCompatible(component, motherboard)) {
console.log('Compatible ✔');
} else {
console.log('Incompatible ✖');
}
Vista previa
VoidemAbiss
Componente: Intel Core i5-12400F
Placa madre: ASUS TUF Gaming B660
Estado: Compatible ✔
La IA muestra alertas si detecta montaje incorrecto o piezas incompatibles.